package cn.yangliu.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * The type of ascii-mp-home.
 *
 * <p>
 * .
 *
 * @author 杨柳
 */
@Configuration
public class WebSocketConfig {

    /**
     * 开启websocket功能
     * 创建 websocket接口暴露的bean
     *
     * @return ServerEndpointExporter
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
